package com.liukai.todo_android.entity.vo;


import java.util.HashMap;
import java.util.Map;

/**
 * @author ：liukai
 * @date ：Created in 2021/8/16 5:49 下午
 * @description：用户相关信息
 * @modified By：
 * @version: $
 */
public class ScheduleQueryVo {
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 类型id
     */
    private Long scheduleTypeId;
    /**
     * 描述信息
     */
    private String description;
    /**
     * 0默认,1正计时,2倒计时
     */
    private Integer timingType;
    /**
     * 是否完成
     */
    private Integer finished;

    public Long getUserId() {
        return userId;
    }

    public ScheduleQueryVo setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public ScheduleQueryVo setTitle(String title) {
        this.title = title;
        return this;
    }

    public Long getScheduleTypeId() {
        return scheduleTypeId;
    }

    public ScheduleQueryVo setScheduleTypeId(Long scheduleTypeId) {
        this.scheduleTypeId = scheduleTypeId;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public ScheduleQueryVo setDescription(String description) {
        this.description = description;
        return this;
    }

    public Integer getTimingType() {
        return timingType;
    }

    public ScheduleQueryVo setTimingType(Integer timingType) {
        this.timingType = timingType;
        return this;
    }

    public Integer getFinished() {
        return finished;
    }

    public ScheduleQueryVo setFinished(Integer finished) {
        this.finished = finished;
        return this;
    }

    public Map<String, Object> buildMap() {
        Map<String, Object> map = new HashMap<>(6);
        if (this.getUserId() != null) {
            map.put("userId", this.getUserId());
        }
        if (this.getTitle() != null) {
            map.put("title", this.getTitle());
        }
        if (this.getScheduleTypeId() != null) {
            map.put("scheduleTypeId", this.getScheduleTypeId());
        }
        if (this.getDescription() != null) {
            map.put("description", this.getDescription());
        }
        if (this.getTimingType() != null) {
            map.put("timingType", this.getTimingType());
        }
        if (this.getFinished() != null) {
            map.put("finished", this.getFinished());
        }
        return map;
    }


}
